﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DHQGHN.DAL.Models.DanhMuc
{
    public class ENUMERATOR
    {
        #region Contructors
        public ENUMERATOR()
        {
            this.ENUMERATOR_ID = Common.NullValues.Default_String;
            this.PARENT_ID = Common.NullValues.Default_String;
            this.ADM_UNIT_ID = Common.NullValues.Default_String;
            this.ENUM_CODE = Common.NullValues.Default_String;
            this.FULL_NAME = Common.NullValues.Default_String;
            this.SIGNATURE = Common.NullValues.Default_String;
            this.DESCRIPTIONS = Common.NullValues.Default_String;
            this.DELETED = Common.NullValues.Default_Int;
            this.START_DATE = Common.NullValues.Default_Int;
            this.END_DATE = Common.NullValues.Default_Int;
            this.LAST_UPDATED = Common.NullValues.Default_DateTime;
            this.USERNAME = Common.NullValues.Default_String;
            this.GROUPCODE = Common.NullValues.Default_String;
        }
        #endregion

        #region Properties
        [DataMember(Order=0)]
        public string ENUMERATOR_ID { get; set; }
        [DataMember(Order=1)]
        public string PARENT_ID { get; set; }
        [DataMember(Order=2)]
        public string ADM_UNIT_ID { get; set; }
        [DataMember(Order=3)]
        public string ENUM_CODE { get; set; }
        [DataMember(Order=4)]
        public string FULL_NAME { get; set; }
        [DataMember(Order=5)]
        public string SIGNATURE { get; set; }
        [DataMember(Order=6)]
        public string DESCRIPTIONS { get; set; }
        [DataMember(Order=7)]
        public int DELETED { get; set; }
        [DataMember(Order=8)]
        public int START_DATE { get; set; }
        [DataMember(Order=9)]
        public int END_DATE { get; set; }
        [DataMember(Order=10)]
        public DateTime LAST_UPDATED { get; set; }
        [DataMember(Order = 11)]
        public string USERNAME { get; set; }
        [DataMember(Order = 12)]
        public string GROUPCODE { get; set; }
        #endregion

        #region Field list from Model
        public const string Field_ENUMERATOR_ID = "ENUMERATOR_ID";
        public const string Field_PARENT_ID = "PARENT_ID";
        public const string Field_ADMINIS_UNIT_ID = "ADM_UNIT_ID";
        public const string Field_ENUM_CODE = "ENUM_CODE";
        public const string Field_FULL_NAME = "FULL_NAME";
        public const string Field_SIGNATURE = "SIGNATURE";
        public const string Field_DESCRIPTIONS = "DESCRIPTIONS";
        public const string Field_DELETED = "DELETED";
        public const string Field_START_DATE = "START_DATE";
        public const string Field_END_DATE = "END_DATE";
        public const string Field_LAST_UPDATED = "LAST_UPDATED";
        public const string Field_USERNAME = "USERNAME";
        public const string Field_GROUPCODE = "GROUPCODE";
        #endregion

    }
}
